* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.manager-container {
    background-color: #f8f8ff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 头部样式修正 */
.manager-header {
    display: flex;
    background-color: #304156;
    width: 100vw;
    max-width: 100%;
}

.manager-header-left {
    width: 200px;
    height: 60px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.manager-header-left img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.manager-header-left .title {
    flex: 1;
    margin-left: 5px;
    font-size: 20px;
    font-weight: bold;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manager-header-center {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.manager-header-right {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.manager-header-right .avatar {
    display: flex;
    align-items: center;
    padding-right: 10px;
    color: #ccc;
    cursor: default;
    max-width: 100%;
}

.manager-header-right .avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 5px;
    flex-shrink: 0;
}

/* 主体布局修正 */
.manager-main {
    display: flex;
    width: 100vw;
    max-width: 100%;
}

.manager-main-left {
    width: 200px;
    min-height: calc(100vh - 60px);
    box-shadow: 0 0 6px rgba(0, 21, 41, .35);
    flex-shrink: 0;
}

.manager-main-right {
    flex: 1;
    min-width: 0;
    padding: 10px;
    overflow: hidden;
}

/* 内容区域修正 */
.manager-main-right .search {
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.manager-main-right .operation {
    margin-top: 5px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.manager-main-right .table {
    margin-top: 5px;
    padding: 15px 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow-x: auto;
}

.manager-main-right .table .pagination {
    margin-top: 10px;
}

.card {
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

/* ElementUI组件修正 */
.el-menu {
    width: 200px !important;
    height: 100%;
    background-color: #304156;
}

.el-submenu__title {
    color: #ccc;
    height: 50px;
    line-height: 50px;
    max-width: 200px;
}

.el-menu-item {
    color: #ccc;
    height: 50px;
    line-height: 50px;
    background-color: #304156 !important;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-menu--inline .el-menu-item {
    padding-left: 50px !important;
}

.el-menu .is-active {
    color: #3399ff !important;
}

.el-submenu__title:hover {
    background-color: #222 !important;
}

.el-menu-item:hover {
    background-color: #222 !important;
}

.el-submenu__icon-arrow {
    margin-top: -5px;
}

.el-breadcrumb__inner {
    color: #ccc !important;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-dropdown-menu {
    margin-top: 20px !important;
    max-width: 200px;
}

.el-breadcrumb {
    margin-left: 10px;
    overflow: hidden;
}

th.el-table__cell {
    background-color: #f8f8f8 !important;
    color: #666;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式处理 */
@media screen and (max-width: 768px) {
    .manager-header-left,
    .manager-header-right {
        width: 150px;
    }
    
    .manager-header-left .title {
        font-size: 16px;
    }
    
    .el-breadcrumb {
        font-size: 12px;
    }
}
